package org.tong.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.tong.web1.Web1Bootstrap;
import org.tong.web2.Web2Bootstrap;

/**
 * @author
 * @date 2022-10-08 13:51
 */
@SpringBootApplication(scanBasePackageClasses = {Web1Bootstrap.class, Web2Bootstrap.class})
public class WebAssemBootstrap {

    public static void main(String[] args) {
        SpringApplication.run(WebAssemBootstrap.class);
       /* ConfigurableApplicationContext web1 = new SpringApplicationBuilder(Web1Bootstrap.class).profiles("web1").run(args);
        ConfigurableEnvironment environment = web1.getEnvironment();
        ConfigurableApplicationContext web2 = new SpringApplicationBuilder(Web2Bootstrap.class).profiles("web2").run(args);
        ConfigurableEnvironment environment1 = web2.getEnvironment();
        System.out.println("abc");*/
    }
}
